<template>
    <h1>APP 组件 --- {{ num }}</h1>

    <button @click="addNum">点击修改num</button>

</template>

<script setup>
let num = 100

function addNum() {
    num++
    console.log("num 最新的值: ", num);
}
</script>


